package cn.langpy.dblistener.core.model.transform;


public class EventColumn implements Cloneable{
    private String name;
    private Object value;
    private String comment;
    /**
     * date
     * datetime
     * string
     * json
     * int
     * long
     * double
     */
    private String type;
    private Integer scale;
    private Integer length;
    private Boolean primary;
    private Boolean nullable;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getScale() {
        return scale;
    }

    public void setScale(Integer scale) {
        this.scale = scale;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Boolean getPrimary() {
        return primary;
    }

    public void setPrimary(Boolean primary) {
        this.primary = primary;
    }

    public Boolean getNullable() {
        return nullable;
    }

    public void setNullable(Boolean nullable) {
        this.nullable = nullable;
    }

    @Override
    public EventColumn clone() throws CloneNotSupportedException {
        return (EventColumn)super.clone();
    }

    @Override
    public String toString() {
        return "EventColumn{" +
                "name='" + name + '\'' +
                ", value=" + value +
                ", comment='" + comment + '\'' +
                ", type='" + type + '\'' +
                ", scale=" + scale +
                ", length=" + length +
                ", primary=" + primary +
                ", nullable=" + nullable +
                '}';
    }
}
